Skip to content

chore: upgrade Code to 1.74.1 #5909

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 31 commits into from
Dec 22, 2022
Merged

chore: upgrade Code to 1.74.1 #5909

merged 31 commits into from
Dec 22, 2022

Conversation

jsjoeio
Copy link
Contributor

@jsjoeio jsjoeio commented Dec 19, 2022

This PR upgrades Code to 1.74.1

Patches tested manually

  • cli-window-open
  • disable-builtin-ext-update
  • getting-started
  • insecure-notification
  • integration
  • local-storage
  • logout
  • marketplace
  • proposed API
  • service worker
  • sourcemaps
  • store socket
  • unique-db
  • webview
  • telemetry

Fixes #5846

@jsjoeio jsjoeio self-assigned this Dec 19, 2022
Comment on lines -25 to -28
+ if (installed.type !== ExtensionType.User) {
+ // Never update builtin extensions.
+ continue;
+ }
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unsure if we still need this. See 6751c82

cc @code-asher

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you are right! One way to see is if on load Code downloads a bunch of builtin extensions into the extensions dir.

- content="default-src 'none'; script-src 'sha256-lC8sxUeeYqUtmkCpPt/OX/HQdE0JbHG1Z3dzrilsRU0=' 'self'; frame-src 'self'; style-src 'unsafe-inline';">
+ content="default-src 'none'; script-src 'sha256-/9/YQU12wvTeVXCsIGB4shLwdWrMceCpKojfkloNjPU=' 'self'; frame-src 'self'; style-src 'unsafe-inline';">
- content="default-src 'none'; script-src 'sha256-6s2fEapj0jmA7ZDjzz23Uv4xLlM7KX3p9DYidJX7Zmk=' 'self'; frame-src 'self'; style-src 'unsafe-inline';">
+ content="default-src 'none'; script-src 'sha256-6/HBKMr5Cr24xXtQ+U/BxvVfCvBLYE55u8Jq3j/nzcI=' 'self'; frame-src 'self'; style-src 'unsafe-inline';">
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked webviews via Markdown Preview and Simple Browser. Unless the HTML files were cached, I didn't see any issues. I will double-check.

@jsjoeio jsjoeio marked this pull request as ready for review December 19, 2022 17:45
@jsjoeio jsjoeio requested a review from a team as a code owner December 19, 2022 17:45
Copy link
Member

@code-asher code-asher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks great, going to do some manual smoke testing real swift after we get it building.

@jsjoeio jsjoeio temporarily deployed to npm December 20, 2022 16:18 — with GitHub Actions Inactive
@codecov
Copy link

codecov bot commented Dec 20, 2022

Codecov Report

Merging #5909 (c0d59c8) into main (930791d) will decrease coverage by 3.31%.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #5909      +/-   ##
==========================================
- Coverage   74.94%   71.62%   -3.32%     
==========================================
  Files          30       30              
  Lines        1688     1688              
  Branches      371      371              
==========================================
- Hits         1265     1209      -56     
- Misses        361      401      +40     
- Partials       62       78      +16     
Impacted Files Coverage Δ
src/node/routes/vscode.ts 37.17% <0.00%> (-46.16%) ⬇️
src/node/http.ts 56.12% <0.00%> (-14.29%) ⬇️
src/node/util.ts 88.52% <0.00%> (-3.28%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 930791d...c0d59c8. Read the comment docs.

@github-actions
Copy link

github-actions bot commented Dec 20, 2022

✨ code-server dev build published to npm for PR #5909!

  • Last publish status: success
  • Commit: c0d59c8

To install in a local project, run:

npm install @coder/code-server-pr@5909

To install globally, run:

npm install -g @coder/code-server-pr@5909

@jsjoeio jsjoeio temporarily deployed to npm December 20, 2022 20:55 — with GitHub Actions Inactive
@jsjoeio jsjoeio marked this pull request as draft December 21, 2022 16:58
@jsjoeio
Copy link
Contributor Author

jsjoeio commented Dec 21, 2022

Blocked by #5911

* wip: migrate vscode tests to e2e

* feat: add codeWorkspace to global setup

* refactor: only use dir in spawn when we should

* wip: migrate more tests

* refactor: move all vscode tests to e2e

* refactor(ci): move unit to own job

* fixup: add codecov to unit test step

* Update test/e2e/models/CodeServer.ts

* Update test/e2e/models/CodeServer.ts

* docs: add note about intercept requests

* refactor: rm unused clean() calls

* refactor: delete duplicate test

* refactor: update 'should not redirect' test
@jsjoeio jsjoeio marked this pull request as ready for review December 21, 2022 19:05
@jsjoeio jsjoeio temporarily deployed to npm December 21, 2022 19:06 — with GitHub Actions Inactive
@jsjoeio jsjoeio temporarily deployed to npm December 21, 2022 19:17 — with GitHub Actions Inactive
@jsjoeio jsjoeio temporarily deployed to npm December 21, 2022 19:20 — with GitHub Actions Inactive
@jsjoeio jsjoeio temporarily deployed to npm December 21, 2022 19:39 — with GitHub Actions Inactive
@jsjoeio jsjoeio temporarily deployed to npm December 21, 2022 19:55 — with GitHub Actions Inactive
@jsjoeio jsjoeio temporarily deployed to npm December 21, 2022 21:13 — with GitHub Actions Inactive
@jsjoeio jsjoeio temporarily deployed to npm December 21, 2022 21:21 — with GitHub Actions Inactive
@jsjoeio jsjoeio temporarily deployed to npm December 21, 2022 22:18 — with GitHub Actions Inactive
@jsjoeio jsjoeio temporarily deployed to npm December 21, 2022 23:09 — with GitHub Actions Inactive
@jsjoeio jsjoeio temporarily deployed to npm December 21, 2022 23:20 — with GitHub Actions Inactive
@jsjoeio jsjoeio requested a review from code-asher December 22, 2022 16:18
@@ -8,7 +8,7 @@ To test:
2. Open code-server
3. Open terminal
4. Open another code-server window
5. Run code-server with a file or directory argument
5. Run node ./out/node/entry.js with a file or directory argument
Copy link
Member

@code-asher code-asher Dec 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI node . can be used as a shortcut since it will use the main entry in package.json which points to out/node/entry.js.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TIL!

@jsjoeio jsjoeio merged commit 8377bd2 into main Dec 22, 2022
@jsjoeio jsjoeio deleted the jsjoeio/174-upgrade branch December 22, 2022 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feat]: Upgrade Code to 1.74.1
2 participants